package lab4;

import lab2.*;

public class Main {
    public static void main(String[] args) {
        RegularStaff staffOne = new RegularStaff("zhangsan", EnumDepartment.RD, EnumEmployeeLevel.Junior);
        RegularStaff staffTwo = new RegularStaff("lisi",EnumDepartment.AD,EnumEmployeeLevel.Middle);
        RegularStaff staffThree = new RegularStaff("wangwu",EnumDepartment.FD,EnumEmployeeLevel.Senior);
        RegularStaff staffFour = new RegularStaff("Alice",EnumDepartment.HR,EnumEmployeeLevel.Middle);

        Intern internOne = new Intern("John",EnumDepartment.RD);
        Intern internTwo = new Intern("daming",EnumDepartment.AD);
        Intern internThree = new Intern("lingling",EnumDepartment.HR);

        PartTimeJob partTimeJob = new PartTimeJob("xixi");

        EmployeeStructure employees = new EmployeeStructure();
        employees.add(staffOne);
        employees.add(staffTwo);
        employees.add(staffThree);
        employees.add(staffFour);
        employees.add(internOne);
        employees.add(internTwo);
        employees.add(internThree);
        employees.add(partTimeJob);

        EmployeeActionHR hr = new EmployeeActionHR();
        EmployeeActionFD fd = new EmployeeActionFD();
        employees.accept(hr);
        employees.accept(fd);
        hr.getBestEmployee();
        hr.getWorstName();
    }
}
